
// console.log()
window.onload = function () {
    var ali = document.querySelectorAll('.lbt li');
    var index = 0;
    setInterval(automove, 3000);
    var lastindex = 0;

    function automove() {
        index++;
        if (index == ali.length) {
            index = 0;
        }
        ali[lastindex].className = '';
        ali[index].className = 'active';
        lastindex = index;
    }
}